<?php

namespace D3hdv\Diablo3Bundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class D3ObjetCaracValeurType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('valeurCara')
            ->add('ObjetCaracteristique','entity', array(
	            		'class' => 'D3hdvDiablo3Bundle:D3ObjetCarac',
	            		'property' => 'objetCaracNom'))
        ;
    }

    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(array(
            'data_class' => 'D3hdv\Diablo3Bundle\Entity\D3ObjetCaracValeur'
        ));
    }

    public function getName()
    {
        return 'd3hdv_diablo3bundle_d3objetcaracvaleurtype';
    }
}
